package com.hxzy.tms.dao.impl;

import java.util.List;

import com.hxzy.tms.dao.HibernateBaseDao;
import com.hxzy.tms.dao.TeamUserDao;
import com.hxzy.tms.entity.TeamUser;
import com.hxzy.tms.entity.User;
/**
 * 默认的团队用户操作DAO实现类
 * @author team1
 *
 */
public class DefaultTeamUserDao extends HibernateBaseDao<TeamUser> implements TeamUserDao {
  public List<User> teamUsers(long teamId) {
    List<User> users = getSession().getNamedQuery("teamUsers").setLong("teamId", teamId).list();
    return users;
  }
}
